package com.tianqi.familymap.http

import android.content.Context
import com.tianqi.familymap.model.PageBean
import com.tianqi.familymap.model.RecommendMultipleModel
import com.tianqi.familymap.model.TQBean
import io.reactivex.Observable

class DataManager(private val context: Context) {
    private var retrofitService:RetrofitService? = null
    init {
        this.retrofitService = RetrofitHelper.getTianqi(context).getServer()
    }

    /**
     * 获取推荐
     * @return
     */
    fun getRecomment(token:String,page:Int): Observable<TQBean<PageBean<RecommendMultipleModel>>>? {
        return retrofitService!!.getRecomment(token,page)
    }
}